//项目入口
import Vue from 'vue'

import VueRouter from 'vue-router'
Vue.use(VueRouter)

import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root = 'http://47.89.21.179:8080';


import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import app from './App.vue'
import { Header, Swipe, SwipeItem } from 'mint-ui'
Vue.component(Header.name, Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)

import moment from 'moment'

Vue.filter('dateFormat', function(dataStr, pattern = "YYYY-MM-DD HH:mm:ss"){
   return moment(dataStr).format(pattern)
})

//导入自己的 router.js 路由模块
import router from './router.js'

var vm = new Vue({
  el: "#app",
  data: {
  },
  methods: {
  },
  render: c => c(app),
  router
})